import type { RouteRecordRaw } from 'vue-router';

export const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    redirect: '/home',
  },
  {
    path: '/login',
    component: () => import('../pages/login/index.vue'),
  },

  {
    path: '/404',
    component: () => import('@/pages/404/index.vue'),
  },
  {
    path: '/category',
    component: () => import('../pages/tzl_category/index.vue'),
  },
  {
    path: '/category/detail/:categoryId',
    component: () => import('../pages/tzl_categoryDetail/index.vue'),
  },
  {
    path: '/:pathMatch(.*)',
    name: 'Any',
    redirect: '/404',
  },
];
